# coding: utf-8

from celery import shared_task
from services.datamodel.course.models import mm_UserVideoWatchRecords
from services.datamodel.share import stats_logger


# 上报观看课程的记录和更新课程观看百分比
@shared_task(ignore_result=True)
def update_read_history(userid, chapterid, seconds):

    # stats_logger.debug("update_read_history")
    mm_UserVideoWatchRecords.update_read_history(userid, chapterid, seconds)
